﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace Platformer
{
    public class Enemy
    {
        protected Texture2D texture;
        protected float speed;
        PlatformerGame game;

        public Point Point
        {
            set { size = value; }
            get { return size; }
        }
        protected Point size;
        

        public int Health
        {
            set { health = value; }
            get { return health; }
        }
        protected int health;

        public Rectangle Rect
        {
            set { rect = value; }
            get { return rect; }
        }
        protected Rectangle rect;

        public Vector2 Position
        {
            set { position = value; }
            get { return position; }
        }
        protected Vector2 position;

        public Enemy(PlatformerGame game, Vector2 position)
        {
            this.position = position;
            this.game = game;
        }

        public virtual void Update()
        {
            UpdateRectangle();         
        }

        public void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(texture, position, Color.White);
        }
        /* mCustom Functions*/

        protected void UpdateRectangle()
        {
            rect = new Rectangle((int)position.X, (int)position.Y, size.X, size.Y);
        }

    }
}
